package com.atguigu.eduservice.client;

import com.atguigu.commonutils.R;
import com.atguigu.eduservice.entity.vo.CommentVo;
import com.atguigu.eduservice.fallback.CommentFallBackFeignClient;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

import javax.servlet.http.HttpServletRequest;

/**
 * @author fxy
 * @date 2022/5/15 10:43
 */
@Component
@FeignClient(value = "service-ucenter",fallback = CommentFallBackFeignClient.class)
public interface CommentClient {


    //根据id查询用户信息
    @GetMapping("/ucenterservice/member/getComent/{id}")
    public CommentVo getComent(@PathVariable("id") String id);
}
